$(function() {
	// run the currently selected effect
	function hideDescription() {

		// most effect types need no options passed by default
		var options = {direction: "right"};
		
		// run the effect
		$( "#text_padding_swf" ).hide( "slide", options, 1000, callback );
		
		setTimeout(function() {
			$( "#hidetext_swf" ).hide().fadeOut();
		}, 1000 );
	};

	// callback function to bring a hidden box back
	function callback() {
		setTimeout(function() {
			$( "#viewlink" ).removeAttr( "style" ).fadeIn();
		}, 1000 );
	};

	// set effect from select menu value
	$( "#hidelink" ).click(function() {
		hideDescription();
		return false;
	});
});